package cn.toolck.minitomcat.container;

/**
 * @ClassName AbstractContainer
 * @Description 封装公用的容器信息
 * @Author Toolck Rin
 * @Date 2021/3/18 0:25
 * @Version 1.0
 **/
public abstract class AbstractContainer implements Container {
    private String name;
    private Container parent;

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    public Container getParent() {
        return parent;
    }

    public void setParent(Container parent) {
        this.parent = parent;
    }
}
